package com.job.client.model.message.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("tb_notice")
@NoArgsConstructor
@AllArgsConstructor
public class Notice {
    @TableId(value = "notice_id",type = IdType.ASSIGN_UUID)
    private String noticeId;
    @TableField("user_id")
    private String userId;
    @TableField("title")
    private String title;
    @TableField("type")
    private String type;
    @TableField("content")
    private String content;
    @TableField("is_read")
    private Integer isRead;
    @TableField("create_time")
    private String createTime;
    @TableLogic("is_delete")
    private Integer isDelete;

    public Notice(String userId, String title, String type, String content, String createTime) {
        this.userId = userId;
        this.title = title;
        this.type = type;
        this.content = content;
        this.createTime = createTime;
    }
}
